//用户列表APi
import request from '@/utils/request'

//用户列表APi
export const getuserListApi = (query) => {
  return request({
    url: "/userInfo/user/listUser",
    method: "post",
    data: query,
  });
};
//用户总金额APi
export const getuseraumountApi = (query) => {
  return request({
    url: "/userInfo/user/amount",
    method: "get",
    params: query,
  });
};

//用户充值APi
export const getusertopupApi = (query) => {
  return request({
    url: "/traffic/traffics/recharge",
    method: "post",
    data: query,
  });
};

//用户增减CFP明细APi
export const gettrafficdetailListApi = (query) => {
  return request({
    url: `/trafficdetails/trafficdetail/list`,
    method: "get",
    params: query,
  });
};

//用户流量明细明细APi
export const getflowdetailApi = (query) => {
  return request({
    url: `/flowdetail/flowdetails/list`,
    method: "get",
    params: query,
  });
};

//用户流量包明细APi
export const getflowBagdetailApi = (query) => {
  return request({
    url: `/purchaseflowrecord/purchaseflowrecords/list`,
    method: "get",
    params: query,
  });
};

//用户重置密码接口
export const resetPasswordApi = (query) => {
  return request({
    url: `/traffic/traffics/userResetPwd`,
    method: "post",
    data: query,
  });
};

//用户修改等级接口
export const editUserleveApi = (query) => {
  return request({
    url: `/traffic/traffics/userModifyLevel`,
    method: "post",
    data: query,
  });
};

//用户查看CFP余额
export const getuserCFPApi = (query) => {
  return request({
    url: `/userInfo/user/findUser`,
    method: "post",
    data: query,
  });
}
